home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / menus / dougmenu / sample.mnu < prev    next >
Text File  |  1996-07-10  |  5KB  |  215 lines

  1. ;The DougMenu Sample Menu  (1.77)
  2. ;   feel free to use any of this text in whatever manner you want
  3. ;   just don't charge money for any of it
  4. ;
  5.  
  6. #if %lang% == dutch
  7. #include = c:\menu\dutch.dml
  8. #endif
  9.  
  10. #header message = This is the header box
  11.  
  12. #timer = 5
  13.  
  14. #saver message = Register DougMenu Today!
  15.  
  16. #display ,4,255
  17.   "Welsom to the"
  18.   "DougMenu"
  19.   "sample menu."
  20.  
  21. #display ,60,255
  22.   "This is an"
  23.   "external"
  24.   "display box"
  25.  
  26. #display ,255, 20
  27.   "Press alt-1 to see a hidden menu"
  28.  
  29. #key 0,120
  30.   #password secret
  31.   %secret menu
  32.  
  33. #f1 = Help
  34.   #display,,,7
  35.     "Help with the menu system:"
  36.     ""
  37.     "Press the number displayed before"
  38.     "an item to access the item."
  39.     ""
  40.     "up & down                           "
  41.     "arrow keys - move the selection bar "
  42.     "enter key  - access selected item   "
  43.     "escape key - move back one menu     "
  44.     ""
  45.     "left mouse button works like enter  "
  46.     "right mouse button works like escape"
  47.     ""
  48.     "press any key to continue"
  49. #f2 = Exit
  50.   #display,,,2
  51.     "Good Bye !!"
  52.   echo I hope you liked the sample menu
  53.   #exit
  54. #f3 = Footer Bar
  55.   #display
  56.     "The bar on the bottom"
  57.     "of the screen is the"
  58.     "footer bar."
  59.   #display
  60.     "It shows the user what"
  61.     "function keys"
  62.     "have been defined"
  63.  
  64. %A Menu Window
  65. A Sample Menu Item
  66.   echo This is just a sample menu item.
  67.   echo It doesn't really do anything special.
  68.   echo It just shows a simple menu option.
  69.   pause
  70. User Input
  71.   %User Input Menu
  72. System Information
  73.   %System Information Menu
  74. Netware Information
  75.   %Netware Information Menu
  76. Sub-Title
  77. Menu Positioning
  78.   %Positioning
  79. Look at Color Palettes
  80.  #display
  81.   "The root menu is set"
  82.   "to color palette 0"
  83.   "but this box is set to"
  84.   "the default message"
  85.   "palette"
  86.  #display,,,1
  87.   "The this box is set"
  88.   "to color palette 1"
  89.  #display,,,2
  90.   "The this box is set"
  91.   "to color palette 2"
  92.  #display,,,3
  93.   "The this box is set"
  94.   "to color palette 3"
  95.  #display,,,4
  96.   "The this box is set"
  97.   "to color palette 4"
  98.  #display,,,5
  99.   "The this box is set"
  100.   "to color palette 5"
  101.  #display,,,6
  102.   "The this box is set"
  103.   "to color palette 6"
  104.  #display,,,7
  105.   "The this box is set"
  106.   "to color palette 7"
  107.  #display,,,8
  108.   "The this box is set"
  109.   "to color palette 8"
  110.  #display,,,9
  111.   "The this box is set"
  112.   "to color palette 9"
  113.  
  114. %User Input Menu
  115. DougMenu Variables
  116.   #ask string,Enter a String,,,8
  117.   #ask choice,Chose a Selection,,,6
  118.     "Choice 1" = The First Choice
  119.     "Choice 2" = The Second Choice
  120.     "And Another Choice"
  121.     "Choose Not to Choose" =
  122.   #display,,,1
  123.     "Your String Was:"
  124.     "%string%"
  125.   #if %choice%
  126.     #display,,,1
  127.       "Your Choice Was:"
  128.       "%choice%"
  129.   #else
  130.     #display,,,1
  131.       "You Chose Not To Chose."
  132.   #endif
  133. Password Feature
  134.   #password dougmenu
  135.   #display
  136.    "That is the Password !!!"
  137.  
  138. %System Information Menu
  139. Find a formated floppy disk
  140.   #floppy floppy_drive
  141.   #display 
  142.     "A floppy formatted floppy disk"
  143.     "was found in drive %floppy_drive%" 
  144. Check for free disk space
  145.   #display
  146.     "This will check to see if"
  147.     "there are 300 K bytes free"
  148.     "on a floppy disk"
  149.   #floppy floppy_drive
  150.   #space %floppy_drive% 300
  151.   #display
  152.     "There was at least 300 K"
  153.     "bytes free."
  154. Look for C:\WP51\WP.EXE and run it if it exists
  155.   #if_exist c:\wp51\wp.exe
  156.     #display
  157.       "You have WordPerfect 5.1 on your computer!"
  158.       ""
  159.       "Press any key to start WordPerfect or"
  160.       "Press escape to return to the menu."
  161.     c:\wp51\wp.exe
  162.   #else
  163.     #display
  164.       "C:\WP51\WP.EXE was not found."
  165.       ""
  166.       "Press any key to the menu."
  167.   #endif
  168.  
  169. %Netware Information Menu
  170. Are you logged in to a server?
  171.   #if_member everyone
  172.     #display,,,1
  173.       "You are logged in to a server"
  174.   #else  
  175.     #display,,,2
  176.       "You are not logged in to a server"
  177.   #endif
  178. Check your user name
  179.   #ask user,Enter your username:
  180.   #if_username %user%
  181.     #display,,,1
  182.       "You are logged in as %user%"
  183.   #else  
  184.     #display,,,2
  185.       "You are not logged in as %user%"
  186.   #endif
  187. Are you logged in to server1?
  188.   #if_member server1/everyone
  189.     #display,,,1
  190.       "You are logged in to server1"
  191.   #else  
  192.     #display,,,2
  193.       "You are not logged in to server1"
  194.   #endif
  195.  
  196. %Positioning,0,0
  197. Open a box in the top right
  198.   #display,80,0
  199.    "Box in the top right"
  200. Open a box in the bottom right
  201.   #display,80,25
  202.    "Box in the bottom right"
  203. Open a box in the bottom left
  204.   #display,0,25
  205.    "Box in the bottom left"
  206.  
  207. %Secret Menu,,,2
  208. Secret Option #1
  209.   echo It's not that secure
  210.   echo but it could be useful.
  211.   pause
  212. Secret Option #2
  213.   echo Security through obscurity.
  214.   pause
  215.